﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web;
using System.Data;

namespace olierFrm.WebFormDev.Session
{
    public class SStdQuery
    {
        public const string SessionID = "SessionStdQuery";
        public static SStdQuery Session
        {
            get
            {
                if (HttpContext.Current.Session[SessionID] == null)
                    return null;
                return (SStdQuery)System.Web.HttpContext.Current.Session[SessionID];
            }
            set
            {
                HttpContext.Current.Session[SessionID] = value;
            }
        }
        private Dictionary<string, DataTable> _DataSource = new Dictionary<string, DataTable>();
        public Dictionary<string, DataTable> DataSource
        {
            get { return _DataSource; }
            set { _DataSource = value; }
        }
        private Dictionary<string, List<string>> _Group = new Dictionary<string, List<string>>();
        public Dictionary<string, List<string>> Group
        {
            get { return _Group; }
            set { _Group = value; }
        }

        private Dictionary<string, string> _Sort = new Dictionary<string, string>();
        public Dictionary<string, string> Sort
        {
            get { return _Sort; }
            set { _Sort = value; }
        }



    }
}
